#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
char arr[10005];
int main() {
    int i = 0;
    while (scanf("%c", &arr[i]) != EOF)i++;
    arr[i] = '\0';
    for (int j = i - 2; j >= 0; j--) {
        printf("%c", arr[j]);
    }
    return 0;
}